export const modules = import.meta.glob('@/views/**/*View.vue')

export const getImportComponent = (path: string) => {
  const key = `/src/views/${path}.vue`
  if (key in modules) {
    return modules[key]
  }
  return modules[`/src/views/NotFoundView.vue`]
}
